<div id="profile-header-username" style="padding-top:5px;padding-bottom:0px;">
    <div style="float:left;padding-right:10px;padding-bottom:10px;">
        <span style="position:relative;top:3px;">
            <a onclick="HideShowAndUpdateCustomField(document.getElementById('profileheader'),'toggle0','Profile_ShowProfile');return false;"><img alt="toggleimage" src="images/collapse.gif"/></a>
        </span>
        <span style="font-size:24px;">
            <a href="#" style="text-decoration:none;" onclick="">View/Edit Dispatch for: <?="$location->locname ({$location->customer->custno}-{$location->locno})"?></a>
        </span>
        <div id="profile-header-datecreated" style="clear:both;" class="profile-header-item">
            <?php echo "$location->locnickname / $location->add1 / $location->city $location->state $location->zip";?>
                
        </div>
        
    </div>
    <div class="clear"></div>
</div>

<img class="top-image" src="<?=getImageBySize($location->image,250,250)?>" width="250"/>

<div id="profileheader" style="clear: both; ">
    <table border="0" cellpadding="0" cellspacing="10">
    <tbody><tr>
   
    <td valign="top">

            
            
            <div id="profile-header-datecreated" style="clear:both;" class="profile-header-item">
                <label>Created:</label>
                10/03/2011&nbsp;&nbsp;/&nbsp;&nbsp;
                <label>Last dispatch:</label>
                10/04/2011
            </div>

            <div id="profile-header-balance" class="profile-header-item">
                <label>Credit:</label> <span id="profile-header-credit-value" name="profile-header-credit-value">$0.00</span>&nbsp;&nbsp;/&nbsp;&nbsp;
                <label>Total Paid:</label> <span id="profile-header-totalpaid-value" name="profile-header-totalpaid-value">$0.00</span>&nbsp;&nbsp;/&nbsp;&nbsp;
                <label>Total Un-Paid:</label> <span id="profile-header-totalunpaid-value" name="profile-header-totalunpaid-value">$0.00</span>&nbsp;&nbsp;/&nbsp;&nbsp;
                <label>Un-Invoiced Work:</label> <span id="profile-header-uninvoiced-value" name="profile-header-uninvoiced-value"><a href="index.php?fuse=clients&amp;view=Admin_Profile_UnInvoiced">$0.00</a>
            </span></div>


    </td>
    </tr>
    </tbody></table>
</div>